//import request from '@/utils/request'
import http from '@/api/request'

const api = {
	// 获取列表
	getList(query) {
		return http({
			url: '/tug-api/mCustomer/list',
			method: 'get',
			params: query
		})
	},
	// 根据Id查询单条
	getDetailById(params) {
		return http({
			url: `/tug-api/mCustomer/getById`,
			method: 'get',
			params: params
		})
	},
	// 新建/修改
	save(data) {
		return http({
			url: '/tug-api/mCustomer/save',
			method: 'post',
			data: data
		})
	},
	//删除
	remove(params) {
		return http({
			url: `/tug-api/mCustomer/removeBatch`,
			method: 'post',
			params: params
		})
	}
}

export default api